From 145e773d361c3dd2da5f2bceafdec09430efd0c9 Mon Sep 17 00:00:00 2001 From: robertl Date: Thu, 17 Apr 2003 05:12:11 +0000 Subject: [PATCH] Free more nodes on the tree when we nuke a tag. Approved by Ron. --- gpsbabel/gpx.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gpsbabel/gpx.c b/gpsbabel/gpx.c index 6460378a4..636ed600b 100644 --- a/gpsbabel/gpx.c +++ b/gpsbabel/gpx.c @@ -881,6 +881,12 @@ void free_gpx_extras( xml_tag *tag ) if (tag->parentcdata) { xfree(tag->parentcdata); } + if (tag->tagname) { + xfree(tag->tagname); + } + if (tag->attributes) { + xfree(tag->attributes); + } next = tag->sibling; xfree(tag); tag = next; -- 2.30.2